package com.fitness.front.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.front.modal.course.dto.CourseDto;
import com.fitness.front.modal.course.entity.Course;
import com.fitness.front.modal.course.vo.CourseVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CourseConvertor {
    CourseVO entity2Vo(Course result);

    Page<CourseVO> entity2Vo(Page<Course> result);

    Course dto2Entity(CourseDto courseDto);

    List<CourseVO> entities2Vos(List<Course> courseSchedulesByCoachId);

}
